//
//  Fish1View.m
//  NCMM
//
//  Created by John Kline on 10/9/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Fish1View.h"
#import "DraggableImage.h"

@implementation Fish1View

@synthesize gameObjects;
@synthesize dorsal;
@synthesize caudal;
@synthesize eyes;
@synthesize mouth;

- (id)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code.
		dorsal = [[DraggableImage alloc] initWithImage:[UIImage imageNamed:@"dorsalLabel.png"]];
		dorsal.center = CGPointMake(200,100);
		dorsal.imageID = 1;
		eyes = [[DraggableImage alloc] initWithImage:[UIImage imageNamed:@"eyesLabel.png"]];
		eyes.center = CGPointMake(400,100);
		eyes.imageID = 2;
		caudal = [[DraggableImage alloc] initWithImage:[UIImage imageNamed:@"caudalLabel.png"]];
		caudal.center = CGPointMake(600,100);
		caudal.imageID = 3;
		mouth = [[DraggableImage alloc] initWithImage:[UIImage imageNamed:@"mouthLabel.png"]];
		mouth.center = CGPointMake(800,100);
		mouth.imageID = 4;
		
		dorsal.userInteractionEnabled = YES;    
		eyes.userInteractionEnabled = YES;
		caudal.userInteractionEnabled = YES;
		mouth.userInteractionEnabled = YES;
		
		[self addSubview:dorsal];
		[dorsal release];
		
		[self addSubview:eyes];
		[eyes release];
		
		[self addSubview:caudal];
		[caudal release];
		
		[self addSubview:mouth];
		[mouth release];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code.
}
*/

- (void)dealloc {
    [super dealloc];
}

//- (void)createRegions
//{
//   UIView *mouthRegion = [[UIView alloc] initWithFrame:CGRectMake(0, 400, 400, 400)];
//}


@end
